﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucReply.ascx.cs" Inherits="PromotionApp.UserControl.ucReply" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <asp:Repeater ID="rptReply" runat="server" OnItemDataBound="rptReply_ItemDataBound"
            OnItemCommand="rptReply_ItemCommand">
      <HeaderTemplate> </HeaderTemplate>
      <ItemTemplate>
        <table class="replyBox" cellpadding="0" cellspacing="0" width="100%" >
          <td class="replyText" valign="top" align="left"><table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                  <td class="headReply" valign="top" align="left">Reply#
                    <asp:Label ID="lblReplyNo" runat="server" Text="lblReplyNo"></asp:Label></td>
                </tr>
                <tr>
                  <td class="titleReply" valign="top" align="left"><asp:Label ID="lblMessage" runat="server" Text="lblMesage"></asp:Label></td>
                </tr>
                <tr id="trImage" runat="server">
                  <td valign="middle" align="left"><table border="0" width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td valign="top" align="center"><asp:Image ID="imgReply" runat="server" /></td>
                      </tr>
                    </table></td>
                </tr>
                <tr>
                  <td class="replyBy" rowspan="2" align="left" valign="top"><table border="0" width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="left" valign="top"><span class="from">Posted by</span> <span class="byName">
                          <asp:Label ID="lblPostedBy" runat="server" Text="lblPostedBy"></asp:Label>
                          </span></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><span class="date">Posted on</span> <span class="byDate">
                          <asp:Label ID="lblPostedDate" runat="server" Text="lblPostedDate"></asp:Label>
                          </span></td>
                      </tr>
                      <tr height="30px"> </tr>
                    </table>
                    <table border="0" width="100%" cellpadding="0" cellspacing="0">
                      <tr id="trStatus" class="trStatus" runat="server">
                        <td valign="top" align="left" width="70px"><span class="status"><b>Status</b></span></td>
                        <td valign="top" align="left" style="display:none"><asp:Label ID="lblStatusDesc" runat="server" Text="lblStatusDesc"></asp:Label></td>
                        <td valign="top" align="left" width="815px"><asp:Button ID="btnAction" runat="server" CommandName="ChangeReplyAction" /></td>
                        <td valign="top" align="left" width="80px"><asp:Button ID="btnDelete" CssClass="btnDelete" ToolTip="Delete" runat="server" CommandName="DeleteReply" OnClientClick="return confirm('Are you suce to want to delete this topic ?')" /></td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </ItemTemplate>
      <FooterTemplate> </FooterTemplate>
    </asp:Repeater>
  </ContentTemplate>
</asp:UpdatePanel>
